Skip to content

Add scale_info parameter to _scale_url#201

Merged
jensens merged 1 commit intomainfrom
feature/scale-url-info
Mar 10, 2026
Merged

Add scale_info parameter to _scale_url#201
jensens merged 1 commit intomainfrom
feature/scale-url-info

Conversation

@jensens
Copy link
Member

@jensens jensens commented Mar 9, 2026

Follow-up to #199 (by @jensens) and the review feedback from @davisagli in #200.

Adds scale_info=None kwarg to _scale_url() on both ImageScale and ImageScaling. All call sites pass the available scale metadata dict so overrides (e.g. Thumbor) have access to width, height, mode, fieldname, mimetype without needing to look them up separately.

Idea by @davisagli in #200 (review)

@mister-roboto
Copy link

@jensens thanks for creating this Pull Request and helping to improve Plone!

TL;DR: Finish pushing changes, pass all other checks, then paste a comment:

@jenkins-plone-org please run jobs

To ensure that these changes do not break other parts of Plone, the Plone test suite matrix needs to pass, but it takes 30-60 min. Other CI checks are usually much faster and the Plone Jenkins resources are limited, so when done pushing changes and all other checks pass either start all Jenkins PR jobs yourself, or simply add the comment above in this PR to start all the jobs automatically.

Happy hacking!

@jensens
Copy link
Member Author

jensens commented Mar 9, 2026

@jenkins-plone-org please run jobs

@jensens jensens requested a review from davisagli March 10, 2026 00:13
Copy link
Member

@davisagli davisagli left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks!

@jensens jensens merged commit 2786eb2 into main Mar 10, 2026
11 checks passed
@jensens jensens deleted the feature/scale-url-info branch March 10, 2026 21:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants